<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>方式一</title>
    <script language="JavaScript">
        function test() {

           window.at.runJs(function(){
                //这里写js代码
               run();
				
				
				
           }.toString());

           /*
           window.at.close();
           window.at.runJsFile('主脚本.js');
          */
        }
    </script>
</head>
<body>
<div style="width:600">
<input type="Button" style="width:300" value="启动脚本"  onClick="test()"  />
</div>
</body>
</html>